package com.xyw.code.platform.common.entity.dto;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.xyw.code.common.core.util.LongJsonDeserializer;
import com.xyw.code.common.core.util.LongJsonSerializer;
import com.xyw.code.platform.common.entity.po.SysRoleMenu;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * @Classname UserDTO
 * @Description 角色Dto
 * @Author xuyiwei
 */
@Setter
@Getter
public class RoleDTO {

    private static final long serialVersionUID = 1L;
    @JsonDeserialize(using = LongJsonDeserializer.class)
    @JsonSerialize(using = LongJsonSerializer.class)
    private Long id;
    private String roleName;
    private String roleCode;
    private String roleDesc;
    @JsonDeserialize(using = LongJsonDeserializer.class)
    @JsonSerialize(using = LongJsonSerializer.class)
    private Long deptId;
    private Integer delFlag;
    private int dsType;
    List<SysRoleMenu> roleMenus;
    List<String> roleDepts;



}
